package com.my.ext.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.my.ext.entity.Contribution;

@Repository
public interface ContributionMapper {

	public List<Contribution> findById(@Param("id") int id);
	
	public int saveCont(@Param("u_id") int u_id, @Param("cont") int cont, @Param("data") String data, @Param("group_id")int group_id);
	
	public Contribution queryMTContribution(@Param("u_id")int u_id, @Param("contime") String contime);
	
	public int updateCont(@Param("u_id")int u_id, @Param("contime")String contime, @Param("cont")int cont);
	
	public int myCount(@Param("u_id") int u_id);
	
	public List<Contribution> findByGroup(@Param("groupid") int groupid);
}
